package com.leochan.shuniu.api;

import java.util.HashMap;
import java.util.Map;

import org.scribe.oauth.Token;

public abstract class BaseAPI {

	protected static Map<String, Object> params = new HashMap<String, Object>();

	protected static final String Token = "oauth_token";

	protected static final String Secret = "oauth_token_secret";
	
	protected static final String Network_id = "network_id";
	
	protected static final String User_id = "user_id";

	protected static void initParams(Token token) {
		params.clear();
		if (token != null) {
			params.put(Token, token.getToken());
		}

	}

}
